package com.diancan.modules.order;

import com.diancan.common.BaseService;
import com.diancan.domain.Orders;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService extends BaseService<OrderMapper, Orders> {
    private final OrderMapper orderMapper;

    public OrderService(OrderMapper orderMapper) {
        this.orderMapper = orderMapper;
    }

    //====================  普通用户  ======================

    // 查询全部订单
    public List<Orders> selectAll(String userId){
        return orderMapper.selectAllByUserid(userId);
    }
}
